<?php

namespace SpecialOperations\GameBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * SpecialOperations\GameBundle\Entity\Terrain
 */
class Terrain
{
    /**
     * @var float $movementSpeed
     */
    private $movementSpeed;

    /**
     * @var string $name
     */
    private $name;

    /**
     * @var bigint $id
     */
    private $id;


    /**
     * Set movementSpeed
     *
     * @param float $movementSpeed
     */
    public function setMovementSpeed($movementSpeed)
    {
        $this->movementSpeed = $movementSpeed;
    }

    /**
     * Get movementSpeed
     *
     * @return float 
     */
    public function getMovementSpeed()
    {
        return $this->movementSpeed;
    }

    /**
     * Set name
     *
     * @param string $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Get id
     *
     * @return bigint 
     */
    public function getId()
    {
        return $this->id;
    }
    /**
     * @var SpecialOperations\GameBundle\Entity\District
     */
    private $districts;

    public function __construct()
    {
        $this->districts = new \Doctrine\Common\Collections\ArrayCollection();
    }
    
    /**
     * Add districts
     *
     * @param SpecialOperations\GameBundle\Entity\District $districts
     */
    public function addDistrict(\SpecialOperations\GameBundle\Entity\District $districts)
    {
        $this->districts[] = $districts;
    }

    /**
     * Get districts
     *
     * @return Doctrine\Common\Collections\Collection 
     */
    public function getDistricts()
    {
        return $this->districts;
    }
    
    public function __ToString(){
        return $this->name;
    }
}